package com.gradle.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gradle.service.PayService;

@Controller
public class PayController {

	@Autowired
	private PayService payService;
	
	@ResponseBody
	@RequestMapping("/pay")
	public Object pay(int channelId,int goodsId){
		return this.payService.getPrice(channelId, goodsId);
	}
}
